<template>
  <div>
    <div class="singer-img">
      <img src="../assets/img/iu02.jpg" alt=""><br>
      <van-icon name="checked" color="lightblue"/>
      <p>爱吃的小糖豆</p>
      <div></div>
    </div>
    <van-tabs v-model="active">
      <van-tab title="主页">
        <ul class="mysong">
          <li >
            <div class="mysong-img">
              <router-link  to="" ><van-icon name="like-o" /> <span>收藏记录</span></router-link>
            </div>
          </li>
          <li>
            <div class="mysong-img" @click="changeUrl">
              <img src="../assets/img/1.jpg" alt="">

              <div>
                <span>最近听歌榜</span><br>
                <span>累计听取0首</span>
              </div>
            </div>
          </li>
          <li>
            <div class="mysong-img" @click="changeUrl">
              <img src="../assets/img/1.jpg" alt="">

              <div>
                <span>最近听歌榜</span><br>
                <span>累计听取0首</span>
              </div>
            </div>
          </li>

        </ul>
      </van-tab>

      <van-tab title="动态">
        <div class="new-do">
          <p>暂时没有动态</p>
        </div>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  name: "mine",
  data(){
    return{
      active:0
    }
  },
  methods:{
    changeUrl(){
      this.$router.push('/collect')
    }
  }
}
</script>

<style lang="less" scoped>
.singer-img {
  width: 100%;
  height: 190px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;

  i {
    position: absolute;
    top: 110px;
    left: 48%;
    font-size: 20px;
    z-index: 100;
  }

  img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 100;
    margin-top: 20px;
  }

  p {
    margin: 0;
    padding: 0;
    height: 30px;
    text-align: center;
    width: 100%;
    font-size: 16px;
    margin-bottom: 20px;
  }

  div {
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-image: url("../assets/img/2.jpg");
    background-size: 100% 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
}
.new-do{
  text-align: center;
  color: #cccccc;
  margin-top: 30px;
}
.mysong{
  li{
    padding: 10px 20px;
    .mysong-img{
      display: flex;
      justify-content: space-between;
      align-items: center;
      img{
        width: 50px;
        height: 50px;
      }
      div{
        width: calc(100% - 60px);
      }
      div span:nth-of-type(2){
        font-size: 12px;
        color: #999999;
      }
    }
  }
}
</style>